<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                            <form class="navbar-form form-inline" action="{:U('Admin/bank/moneylist')}" method="get">
                                    <div class="form-group pull-right">
                                        <a href="{:U('Admin/bank/bank_add')}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i>添加账户</a>
                                    </div>
                                </form>
                            </div>
                        </nav>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
                                    <thead>
                                        <tr role="row">
                                            <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending" style="width: 294px;">开户行</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="Browser: activate to sort column ascending">开户民</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="Platform(s): activate to sort column ascending">帐号</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="Platform(s): activate to sort column ascending">分行支行</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1"  aria-label="Platform(s): activate to sort column ascending">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <if condition="$list[0]['id'] eq ''">
                                            <tr align="center">
                                                <td colspan="10">暂无数据</td>
                                            </tr>
                                            <else/>
                                            <foreach name="list" item="v" key="k" >
                                                <tr role="row" align="center">
                                                    <td>{$v.opening}</td>
                                                    <td>{$v.name}</td>
                                                    <td>{$v.account}</td>
                                                    <td>{$v.address}</td>
                                                    <td>
                                                        <a href="__CONTROLLER__/bank_edit/id/{$v.id}" target="_self">编辑</a>｜
                                                        <a href="__CONTROLLER__/bank_del/id/{$v.id}" onclick="return confirm('您确定要删除吗？');" target="_self"><b style="color:red">删除</b></a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                        </if>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
</body>
</html>